<include file="Public:header"/>
<div id="container">
<div id="content">
<div id="main">
  <!-- Polls Archive START -->
  <div class="post">
    <div class="title">
      <h2>Polls Archive</h2>
      <div class="fixed"></div>
    </div>
	<div class="info">
		<div class="fixed"></div>
	</div>
    <div class="content">
	<present name="list">
	<div class="wp-polls wp-polls-archive">
    <volist name="list" id="vo">
        <volist name="vo[content]" id="content">
          <p style="text-align: center;"><strong>{$content.vote_name}</strong></p>
          <div id="polls-{$content.id}-ans" class="wp-polls-ans">
            <ul class="wp-polls-ul">
              <volist name="content[options]" id="options">
                <li>{$options.option_name} <small>({$options.percent}%, {$options.option_count} Votes)</small>
                  <div class="pollbar" style="width: {$options.option_width}%;" title="{$options.option_name} ({$options.percent}% | {$options.option_count} Votes)"></div>
                </li>
              </volist>
            </ul>
            <p style="text-align: center; font-size:7.5pt;">Total Voters: <strong>{$content.vote_count}</strong> 
          </div>
          <p style="font-size:7.5pt; padding-bottom:15px; border-bottom:1px dotted #ccc;">Start Date: {$content.vote_starttime}<br />
            End Date: {$content.vote_endtime}</p>
        </volist>
      </volist>
	</div>
	<else/>
	<p>No polls archive at the moment.</p>
	</present> 
      <div class="fixed"></div>
    </div>
	<div class="comments comments_single"> <a rel="nofollow" href="#respond">Leave a comment</a></div>
  </div>
  <!-- Polls Archive END --> 
  <!-- Comments START -->
  <!-- Comments List START -->
  <div id="comments">
  <present name="commentslist">
  <ol id="thecomments" class="commentlist">
    <volist name="commentslist" id="vo">
      <li class="comment" id="comment-{$vo.comment_id}">
	   <div id="comment-{$vo.comment_id}-">
        <div class="userinfo">
          <div class="userpic"><img src="{$vo.comment_email}" class="avatar avatar-24 photo" width="24" height="24"></div>
          <div class="usertext">
            <div class="username"><present name="vo.comment_url"><a id="reviewer-{$vo.comment_id}" href="{$vo.comment_url}" rel="external nofollow">{$vo.comment_author}</a><else/><span id="reviewer-{$vo.comment_id}">{$vo.comment_author}</span></present> <a class="anchor" rel="nofollow <if condition="Session::get(C('USER_AUTH_KEY')) neq ''"><eq name="vo.comment_type" value="2">gd<else/>co</eq></if>" href="#comment-{$vo.comment_id}">#{$vo.comment_id}</a></div>
            <div class="date">{$vo.comment_addtime}</div>
          </div>
          <div class="fixed"></div>
        </div>
        <div class="comment_text">
          <div id="commentbody-{$vo.comment_id}">
            <p>{$vo.comment_content}</p>
          </div>
        </div>
		</div>
        <present name="vo.comment_recontent">
          <ul class='children'>
            <li class="comment">
              <div class="userinfo">
                <div class="userpic"><img src='{$vo.comment_remail}' class='avatar avatar-24 photo' height='24' width='24' /></div>
                <div class="usertext">
                  <div class="username"> <span><a href="{$_CFG.blog_domain}">{$vo.comment_reauthor}</a></span> </div>
                  <div class="date">{$vo.comment_retime}</div>
                </div>
                <div class="fixed"></div>
              </div>
              <div class="comment_text">
                <div>
                  <p>{$vo.comment_recontent}</p>
                </div>
              </div>
            </li>
          </ul>
        </present>
      </li>
    </volist>
  </ol>
  <!-- comment list END -->
  <!-- comment navi START -->
  <div id="commentnavi" class="messagebox">
    <div class="content"> <span class="pages">Comment pages</span>
      <div id="commentpager">
{$page}
	  </div>
    </div>
  </div>
  <else/>
  <ol id="thecomments" class="commentlist">
  </ol>
  <div class="messagebox">
		<div class="content small">
			No comments yet.
		</div>
	</div>
  </present>
  <!-- comment navi END -->
  <div id="respond">
    <form action="__APP__/Comment/post" method="post" id="commentform">
      <!-- comment info -->
      <div id="comment_header">
        <div id="comment_info">
		<neq name="comment_author" value="">
			<div class="welcome-row">
				Welcome back <strong>{$comment_author}</strong>.  						
				<span id="show_author_info">Change &raquo;</span>
			</div>
		  </neq>
          <div id="author_info">
            <div class="row">
              <input type="text" name="comment_author" id="author" class="textfield" value="{$comment_author}" size="24" tabindex="1" />
              <label for="author" class="small">Name (required)</label>
            </div>
            <div class="row">
              <input type="text" name="comment_email" id="email" class="textfield" value="{$comment_email}" size="24" tabindex="2" />
              <label for="email" class="small">E-Mail (will not be published) (required)</label>
            </div>
            <div class="row">
              <input type="text" name="comment_url" id="url" class="textfield" value="{$comment_url}" size="24" tabindex="3" />
              <label for="url" class="small">Website</label>
            </div>
			<eq name="_CFG.verify" value="1">
			<div class="row">
			 <input name="verify" type="text" id="verify" size="24" class="textfield" tabindex="4" style="ime-mode: disabled;" autocomplete="off"/>
			  <label for="author" class="small">Anti-spam word (required)</label>
		   </div>
		   </eq>
          </div>
		<neq name="comment_author" value="">
		  <script type="text/javascript">MGJS.setStyleDisplay('author_info','none');</script>
		  </neq>
        </div>
      </div>
      <!-- comment input -->
      <textarea name="comment_content" id="comment" tabindex="5" rows="8" cols="50"></textarea>
      <!-- comment submit -->
      <div id="submitbox">
		  <div id="comments_rss_">
			<p><input type="checkbox" name="comment_notify" id="comment_notify" value="1" checked="checked" style="width: auto;" /><label for="comment_notify">Notify me of follow-up comments via e-mail</label></p>
		</div>
        <div class="act">
		  <input type="hidden" name="ajax" value="1">
		  <input type="hidden" name="comment_type" value="3">
          <input name="submit" type="button" id="cmt-submit" class="button" tabindex="6" value="Submit Comment"/>	  
        </div> 
		<!-- emoticon START --> 
		<php> if (function_exists('highslide_emoticons')) : </php>
			<div id="emoticon"><php> highslide_emoticons(); </php></div>
		<php> endif; </php>
		<!-- emoticon END --> 
        <div class="fixed"></div>
      </div>
    </form>
  </div>
 </div>
 <!-- Comments END -->
</div>
<include file="Public:sidebar"/>
<div class="fixed"></div>
<div id="bottom">
<div class="postnav"> {$pollpage}
  <div class="fixed"></div>
</div>
<include file="Public:footer"/>